<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>退换货订单 - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
function g(o){
	return document.getElementById(o);
}
function checkType(status){
	 if(status==0){
		 $("#status").attr("value",'');
	 }else{
       $("#status").attr("value",status);
	 }
     $("#jvForm").submit();
  }
function HoverLi(m,n,counter){
		for(var i=1;i<=counter;i++){
			g('tb_'+m+i).className='dd_normal';
			g('tbc_'+m+i).className='undis';
		}
		g('tbc_'+m+n).className='dis';
		g('tb_'+m+n).className='';
}
function eidtOrder(orderId,status){
	$.post("../order/editOrder.jspx", {
		'orderId' : orderId,
		'status' : status
	}, function(data) {
		if(data.success){
			location.reload();
		}
	},'json');
}

function addCart(orderId){
	$("#orderId").val(orderId);
    $("#jvForm").attr("action","${base}/cart/add_orderItem1.jspx");
	$("#jvForm").submit();
}

function payOrderAgain(orderId){
	$("#orderId").val(orderId);
    $("#jvForm").attr("action","${base}/pay.jspx");
	$("#jvForm").submit();
}

function deleteOrder(orderId){
	$.post("../order/deleteOrder.jspx", {
		'orderId' : orderId
	}, function(data) {
		if(data.success){
			location.reload();
		}
	},'json');
}

function showHide(pd){
	if(pd==0){
	  $("#J_MoreControl").hide();
	  $("#moreFilter").show();
	  $("#lessFilter").hide();
	}else{
		$("#J_MoreControl").show();
		$("#moreFilter").hide();
		$("#lessFilter").show();
	}
}
</script>
</head>
<body>
[#include "../include/会员中心页头顶栏.html"/]
<div class="w1168">
	[#include "会员中心_导航.html"/]
	<div id="container" class="user_right">   
		<div class="user_title_r">
			<div class="user_title_l">退换货订单</div>
        </div>
        <div class="clear"></div>
        <form id="jvForm" action="myscore.jspx" method="post">
        <div class="ks-switchable-content">
        <table width="100%" border="0" cellpadding="3" cellspacing="0" id="detailShowtab">
        <tr>
        <th width="150" height="32" align="center" bgcolor="#f0f0f0">订单号</th>
        <th align="left" bgcolor="#f0f0f0">退款类型</th>
        <th width="130" bgcolor="#f0f0f0">申请时间</th>
        <th width="100" bgcolor="#f0f0f0">状态</th>
        </tr>
        
        [#if pagination?? && pagination.list?size gt 0]
        [#list pagination.list as o]
        <tr>
        <td height="62" align="center">
        <a class="aBlu" href="myOrderView.jspx?orderId=${o.id}" target="_blank">${o.code!}</a></td>
        <td>[@s.m "orderReturn.returnType.${o.returnOrder.returnType!}"/]</td>
        <td align="center">${o.returnOrder.createTime?string('yyyy-MM-dd HH:mm:ss')} </td>
        <td align="center"> [@s.m "orderReturn.status.${o.returnOrder.status}"/]
        [#if o.returnOrder.returnType=1]
        [#if o.returnOrder.status=2]&nbsp;&nbsp;
        <a class="aBlu" href="shipments.jspx?id=${o.returnOrder.id}" target="_blank">发货</a>
        [#elseif o.returnOrder.status=6]&nbsp;&nbsp;
        <a class="aBlu" href="accomplish.jspx?id=${o.returnOrder.id}" target="_blank">确认</a>
        [/#if]
        [#else]
        [#if o.returnOrder.status=6]&nbsp;&nbsp;
        <a class="aBlu" href="accomplish.jspx?id=${o.returnOrder.id}" target="_blank">确认</a>
        [/#if]
        [/#if]
        </td>
        </tr>
        <tr>
        <td height="1" colspan="4" bgcolor="#e7e7e7"></td>
        </tr>
        [/#list]
        <tr align="center">
        <td height="30" colspan="4">[@pagination_style style='3']</td>
        </tr>
        [/@pagination_style]
        [#else]
        <tr><td height="40" colspan="4" align="center">暂无退货记录</td></tr>
        [/#if]
        </table>
      </div>
     </form>
	</div>
	<div class="clear20"></div>
</div>
[#include "../include/页脚信息栏.html"/]
</body>
</html>